<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="../css/home.css" type="text/css" rel="stylesheet"/>
    <script charset="UTF-8" language="javascript"  type="text/javascript"  src="../js/corpMng.js"></script>
    <script charset="UTF-8" language="javascript"  type="text/javascript"  src="../js/home.js"></script>
    <link href="../css/bootstrap3.3.6.min.css" rel="stylesheet">
    <script src="../js/jquery2.1.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
</head>
<body onload="initializeData()">
    <div class="bottom">
        <div class="filter">
            <div>
                <div style="margin-right: 100px">
                    <label>环境设置:</label>
                    <select id="env" title="所属项目" onchange="initializeData()">
                        <option value="dev" selected="selected">测试</option>
                        <option value="sit" >预发布</option>
                        <option value="prod">生产</option>
                    </select>
                </div>
            </div>
            <div style="float: right">
                <button onclick="controlTopDiv('add&edit', 'open', '添加企业')">添加企业</button>
            </div>
        </div>
        <div class="content">
            <table id="cal" border="1" style="border-collapse: collapse; width: 100%; text-align: left">
                <tbody>
                <tr>
                    <th style="width: 200px">企业名</th>
                    <th style="width: 250px">企业编号</th>
                    <th style="width: 1% !important;" title="原来的员工数">-</th>
                    <th style="width: 1% !important;" title="原来的商家折扣总数">-</th>
                    <th style="width: 90px">福利买单开关</th>
                    <th style="width: 90px">是否开通转赠</th>
                    <th style="width: 90px">是否开通代扣</th>
                    <th style="width: 90px">发放扣;消费扣</th>
                    <th style="width: 115px">1福利金=X人名币</th>
                    <th style="width: 80px">企业余额,分</th>
                    <th style="width: 130px">企业充值</th>
                    <th style="width: 155px">员工相关操作</th>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="topDiv1000" id="add&edit" style="display: none;" >
        <div class="topDiv1001 corpMng">
            <div style="width: 100%">
                <label class="topDivTitle"></label>
                <label class="close" onclick="controlTopDiv('add&edit', 'close', '')">X</label>
            </div>
            <div style="width:25%">
                <label class="corpMng" style="color:red">公司名字:</label>
                <label class="corpMng" style="color:red">公司地址:</label>
                <label class="corpMng" >城市:</label>
                <label class="corpMng" >邮箱:</label>
                <label class="corpMng">公司类型:</label>
                <label class="corpMng">公司logo:</label>
                <label class="corpMng">公司电话:</label>
                <label class="corpMng">积分单位:</label>
                <label class="corpMng">兑换比例:</label>
                <button class="topDivSaveButton" onclick="saveCorp()">保存</button>
            </div>
            <div style="width:75%">
                <input class="corpMng" id="corpName" title="公司名字" placeholder="公司名字" type="text"/>
                <input class="corpMng" id="corpAddress" placeholder="地址" type="text" value="张杨路500号"/>
                <input class="corpMng" id="corpCity" title="城市" placeholder="城市" type="text"/>
                <input class="corpMng" id="corpMail" placeholder="邮箱" type="text"/>
                <select class="corpMng" title="" id="corpType">
                    <option value="" selected="selected"></option>
                    <option value="0">农、林、牧、渔业</option>
                    <option value="1">采矿业</option>
                    <option value="2">制造业</option>
                    <option value="3">电力、热力、燃气及水的生产和供应业</option>
                    <option value="4">环境和公共设施管理业</option>
                    <option value="5">建筑业</option>
                    <option value="6">交通运输、仓储业和邮政业</option>
                    <option value="7">信息传输、计算机服务和软件业</option>
                    <option value="8">批发和零售业</option>
                    <option value="9">住宿、餐饮业</option>
                    <option value="10">金融、保险业</option>
                    <option value="11">房地产业</option>
                    <option value="12">租赁和商务服务业</option>
                    <option value="13">科学研究、技术服务和地质勘查业</option>
                    <option value="14">水利、环境和公共设施管理业</option>
                    <option value="15">居民服务和其他服务业</option>
                    <option value="16">教育</option>
                    <option value="17">卫生、社会保障和社会服务业</option>
                    <option value="18">文化、体育、娱乐业</option>
                    <option value="19">综合（含投资类、主业不明显）</option>
                    <option value="20">其它</option>
                </select>
                <input class="corpMng" id="corpLogo" placeholder="http://test.com/test.png" type="text"/>
                <input class="corpMng" id="corpMobile" placeholder="手机" type="text"/>
                <input class="corpMng" id="point_name" placeholder="为空默认元宝" type="text"/>
                <input class="corpMng" id="rmb_point_ratio" placeholder="1元对应多少积分，为空默认为1" type="text"/>

            </div>
        </div>
    </div>

    <div class="topDiv1000" id="empEdit" style="display: none;" >
        <div class="topDiv1001 corpMng">
            <div style="float: left; width: 100%">
                <label class="topDivTitle"></label>
                <label class="close" onclick="controlTopDiv('empEdit', 'close', '')">X</label>
            </div>
            <div style="display: none;"></div>
            <div style="width:30%;float: left">
                <label class="corpMng" style="color:red">证件类型:</label>
                <label class="corpMng" style="color:red">证件号:</label>
                <label class="corpMng" style="color:red">姓名:</label>
                <label class="corpMng" style="color:red">员工卡号:</label>
                <label class="corpMng">mobile:</label>
                <label class="corpMng">department:</label>
                <button class="topDivSaveButton" onclick="saveEmp()">保存</button>
            </div>
            <div style="width:70%">
                <select class="corpMng" title="" id="cert_type">
                    <option value="0"> 身份证</option>
                    <option value="1"> 户口簿</option>
                    <option value="2"> 护照</option>
                    <option value="3"> 军官证</option>
                    <option value="4"> 士兵证</option>
                    <option value="5"> 港澳居民来往内地通行证</option>
                    <option value="6"> 台湾同胞来往内地通行证</option>
                    <option value="7"> 临时身份证</option>
                    <option value="8"> 外国人居留证</option>
                    <option value="9"> 警官证</option>
                    <option value="A">香港身份证</option>
                    <option value="B">澳门身份证</option>
                    <option value="C">台湾身份证</option>
                    <option value="10">营业执照</option>
                    <option value="11">组织机构代码证</option>
                    <option value="12">税务登记证</option>
                    <option value="X">其他证件</option>
                </select>
                <input class="corpMng" id="cert_no" placeholder="" type="text"/>
                <input class="corpMng" id="name" placeholder="" type="text"/>
                <input class="corpMng" id="cardno" placeholder="" type="text"/>
                <input class="corpMng" id="mobile" placeholder="" type="text"/>
                <input class="corpMng" id="department" placeholder="" type="text"/>
            </div>
        </div>
    </div>

    <div class="topDiv1000" id="empList" style="display: none;" >
        <div class="topDiv1001 corpEmp">
            <div style="float: left; width: 100%">
                <label class="topDivTitle"></label>
                <label class="close" onclick="controlTopDiv('empList', 'close', '')">X</label>
            </div>
            <div style="display: none;"></div>
            <div style="margin-left: 18px;">
                <input id="realName" type="text" title="" placeholder="姓名"/>
                <button onclick="empListTable(document.getElementById('empList').getAttribute('corpid'), 1)">查询</button>
            </div>
            <div style="width: 100%">
                <table id="empTable" border="1" style="border-collapse: collapse; width: 95%; text-align: left; margin:0 auto">
                    <tbody>
                    <tr>
                        <th>员工名</th>
                        <th>工号job_no</th>
                        <th title="account_balance">余额/分</th>
                        <th>ali_user_id</th>
                        <th style="width: 160px">添加充值金额/分</th>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="padding-left: 35%; margin: 20px 0;">
                <button id="empListP" class="page"><</button>
                <input id="empListC" class="page" type="text" title="" style="" value="1"/>
                <button id="empListGO" class="page">go</button>
                <button id="empListN" class="page">></button>
                <span class="page">共</span>
                <span id="empListPageCount" class="page"></span>
                <span class="page">页</span>
            </div>
        </div>
    </div>


</body>
</html>